<?php
 /**
 *  +---------------------------------------------------------------------- 
 *  | 文件功能：权限菜单模型
 *  +---------------------------------------------------------------------- 
 *  | Copyright (c) 2022~2024 https://www.huihuiv.com All rights reserved.
 *  +---------------------------------------------------------------------- 
 *  | Create At: 2024年02月26日 18:10:24
 *  +---------------------------------------------------------------------- 
 *  | Author: 半壶水 <star@cqshanwen.com>
 *  +---------------------------------------------------------------------- 
 */

namespace App\Models;


class AuthModel extends BaseModel
{
    // 权限菜单表名
    protected $table = 'sw_auth';

    // 权限菜单主键
    protected $primaryKey = 'auth_id';

    // 允许写入字段
    protected $fillable = [
        'status',
        'pid',
        'type',
        'title',
        'controller',
        'action',
        'icon',
        'router',
        'is_hidden'
    ];

    // 自动完成字段
    protected $attributes = [
        'status' => 0
    ];
}
